package com.draemoncode.ui;

import java.awt.Color;

import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

public class Binding {
	
	public static void initUI(SimpleApplication application){
		Object[][] cellData = {{"row1-col1", "row1-col2"},{"row2-col1", "row2-col2"}};
//		String[] columnNames1 = {"微信头像", "微信名字", "积分", "最近上线时间"};
		String[] columnNames2 = {"微信头像", "微信名字", "下注", "红包金额", "下注时间", "抢红包时间", "结算积分"};
		String[] columnNames3 = {"编号", "标庄人", "标庄金额", "玩家人数", "开始时间", "结算时间"};
//		TableModel tableMode1 = new DefaultTableModel(cellData, columnNames1);
		TableModel tableMode2 = new DefaultTableModel(cellData, columnNames2);
		TableModel tableMode3 = new DefaultTableModel(cellData, columnNames3);
//		application.getJiFenTable().setModel(tableMode1);
		application.getPodDetailTable().setModel(tableMode2);
		application.getPodListTable().setModel(tableMode3);
		application.getPodDetailTable().getModel().setValueAt("yangz", 0, 0);
		application.setView(application);
	} 
}
